<template>
  <div class="t">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <div class="yi">
        <el-form-item size="mini" label="开始时间" class="a">
          <el-date-picker  v-model="formInline.startTime" type="datetime"  class="styleClass" placeholder="选择开始时间" value-format="yyyyMMdd HH:mm:ss" style="width:100%"></el-date-picker>
        </el-form-item>
        <el-form-item size="mini" label="结束时间" class="a">
          <el-date-picker  v-model="formInline.endTime" type="datetime"  class="styleClass" placeholder="选择结束时间" value-format="yyyyMMdd HH:mm:ss" style="width:100%"></el-date-picker>
        </el-form-item>
        <el-button size="mini" class="newButtonColor SearchBTN" @click="onSubmit">查询</el-button>
        <el-button size="mini" class="otherBTN SearchBTN" @click="empty">清空</el-button>
      </div>
    </el-form>
  </div>
</template>
<style lang="scss" scoped>
</style>
<script>
  export default {
  data() {
    return {
      formInline: {
        headers: [],
        values: []
      },
      startTime: [],
      endTime: []
    };
  },
  methods: {
    setData() {
      this.startTime = this.$parent.$parent.startTime;
      this.endTime = this.$parent.$parent.endTime;
    },
    // 查询
    onSubmit() {
      this.$parent.queryParam = this.formInline;
      this.$parent.$parent.$parent.getData_baidu();
    },
    // 清空
    empty() {
      this.formInline = {};
    },
  },
  mounted() {
  }
};
</script>
